<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>轮播图</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <style>
      .carousel {
        width: 1000px;
        height: 466px;
        background-color: aqua;
        margin: 67px auto;
        /* 给轮播图定位参考 */
        position: relative;
        /* 超出的轮播图隐藏 */
        overflow: hidden;
      }

      .carousel ul {
        list-style: none;
        width: 5000px;
        position: absolute;
        top: 0;
        left: 0;
      }

      .carousel ul li {
        width: 1000px;
        height: 466px;
        background-color: blueviolet;
        /* li 水平显示 */
        float: left;
      }

      .carousel .prev {
        width: 41px;
        height: 69px;
        /* background-color: rgba(0, 0, 0, 0.5); */
        background: url(./images/icon-slides.png) -84px 0;
        position: absolute;
        top: 50%;
        left: 0;
        margin-top: -35px;
      }

      .carousel .prev:hover {
        background-position: 0 0;
      }

      .carousel .next {
        width: 41px;
        height: 69px;
        /* background-color: rgba(0, 0, 0, 0.5); */
        position: absolute;
        top: 50%;
        right: 0;
        margin-top: -35px;
        background: url(./images/icon-slides.png) -125px 0;
      }

      .carousel .next:hover {
        background-position: -42px 0;
      }

      .carousel .footer {
        width: 1000px;
        height: 50px;
        background-color: rgba(0, 0, 0, 0.5);
        position: absolute;
        left: 0;
        bottom: 0;
        font-size: 0;
        /* 让span水平居中 */
        text-align: center;
        /* 让span垂直居中 注意没有完全绝对垂直居中 */
        line-height: 50px;
      }

      .carousel .footer span {
        width: 10px;
        height: 10px;
        margin-right: 6px;
        border-radius: 50%;
        background-color: #fff;
        display: inline-block;
        /* 以.footer的行高基准线完全垂直居中 */
        vertical-align: middle;
      }

      .carousel .footer span.actived {
        background-color: #ff69b4;
      }

      .carousel .footer span:hover {
        background-color: #ff69b4;
      }
      /* .carousel .footer ul {
        width: 100px;
        height: 10px;
        list-style: none;
        margin: 20px auto 20px 464px;
      }

      .carousel .footer ul li {
        width: 10px;
        height: 10px;
        float: left;
        margin-right: 6px;
        border-radius: 50%;
        background-color: #fff;
      }

      .carousel .footer ul li:hover {
        background-color: #ff69b4;
      }

      .carousel .footer ul li.active {
        background-color: #ff69b4;
      } */
    </style>
  </head>
  <body>
    <div class="carousel">
      <ul>
        <li><img src="./images/slide-1.png" alt="slide-image" /></li>
        <li><img src="./images/slide-2.png" alt="slide-image" /></li>
        <li><img src="./images/slide-3.png" alt="slide-image" /></li>
        <li><img src="./images/slide-4.png" alt="slide-image" /></li>
        <li><img src="./images/slide-5.png" alt="slide-image" /></li>
      </ul>

      <div class="prev"></div>
      <div class="next"></div>

      <div class="footer">
        <span class="actived"></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <!-- <ul>
          <li class="active"></li>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
        </ul> -->
      </div>
    </div>
  </body>
</html>
